package com.jfinalbbs.common;

import com.jfinal.config.*;
import com.jfinal.core.JFinal;
import com.jfinalbbs.module.index.IndexController;

/**
 * Created by Tomoya.
 * Copyright (c) 2016, All Rights Reserved.
 * http://jfinalbbs.com
 */
public class AppConfig extends JFinalConfig {

    public void configConstant(Constants me) {
        me.setFreeMarkerTemplateUpdateDelay(0);
    }

    public void configRoute(Routes me) {
        me.add("/", IndexController.class, "WEB-INF/page");
    }

    public void configPlugin(Plugins me) {

    }

    public void configInterceptor(Interceptors me) {

    }

    public void configHandler(Handlers me) {

    }

    public static void main(String[] args) {
        JFinal.start("src/main/webapp", 8080, "/", 5);
    }
}
